<style type="text/css">
	a.link_permiss {
		color: #FF9933;
	}
</style>

<!-- js validate form  -->
<script type="text/javascript">
</script>

		<div class="content_head">
			<?php echo $title; ?>
		</div>	
		<div class="content_ct">
			<div class="content_ct_show">
				<div class="content_ct_show_abs">
					<?php echo $this->session->flashdata('msview'); ?>
				</div>
				<div class="content_ct_show_paging">
					<span style="color: #888;">Tổng số:</span>
					<span style="color: #444;">(<?php echo $this->pagination->total_rows; ?>)</span>
					<?php echo $this->pagination->create_links(); ?>
				</div>
				
				<form id="frmForm" method="POST" action="<?php echo base_url()?>back_end/group_user/delete" >
				<div class="content_ct_show_head">
					<input class="delete_input_head" type="submit" value="Xóa" />
					<a class="add_new" href="<?php echo base_url()?>back_end/group_user/add">Thêm mới</a>
					<span style="padding-left: 5px; color: #FF9933;" class="count_check"></span>
				</div>
				
				<div class="content_ct_show_ct">
					<table class="content_ct_show_ct_tbl" width="100%">   
						<tr class="content_ct_show_ct_tbl_top">
							<td width="5%">
								<input class="input_checkall" type="checkbox" />
							</td>
							<td width="5%">
		                    	<a class="link_change" href="<?php echo base_url() ?>back_end/group_user/sort/id/<?php echo $sort; ?>">ID</a>
							</td>
							<td width="20%">
								<a class="link_change" href="<?php echo base_url() ?>back_end/group_user/sort/name/<?php echo $sort; ?>">Tên nhóm</a>
							</td>
							<td width="60%">
								<a class="link_change" href="<?php echo base_url() ?>back_end/group_user/sort/description/<?php echo $sort; ?>">Mô tả</a>
							</td>
							<td width="5%">
								<a class="link_change" href="<?php echo base_url() ?>back_end/group_user/sort/status/<?php echo $sort; ?>">Trạng thái</a>
							</td>
							<td width="5%">
								<span>Tác vụ</span>
							</td>
						</tr>
						 
						<?php
		                	$count = 1; 
		                	if (count($group_user_value) > 0) {
		                		foreach ($group_user_value as $value) {
		                		$count += 1;	 
		                ?> 
						<tr class="<?php if ($count%2) { echo 'content_ct_show_ct_tbl_bt_1'; } else { echo 'content_ct_show_ct_tbl_bt_2'; }  ?>">
							<td>
								<input class="input_checkbox" type="checkbox"  value="<?php echo $value['id']; ?>" name="value_id[]"/>
							</td>
							<td>
								<span><?php echo $value['id']; ?></span>
							</td>
							<td>
								<span><?php echo $value['name']; ?></span>
							</td>
							<td>
								<span><?php echo $value['description']; ?></span>
							</td>
							<td>
								<?php if($value['status'] == 1) { ?>
		                    		<a class="tag_action" href="<?php echo base_url()?>back_end/group_user/active/<?php echo $table.'-'.$value['id'].'-'.'0'.'-'.$table; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check2.png" title="Trạng thái" alt="icon check" /></a>
		                    	<?php } else { ?>
		                 			<a class="tag_action" href="<?php echo base_url()?>back_end/group_user/active/<?php echo $table.'-'.$value['id'].'-'.'1'.'-'.$table; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check.png" title="Trạng thái" alt="icon check" /></a>
		                    	<?php }?>
							</td>
							<td>
								<a href="<?php echo base_url()?>back_end/group_user/edit/<?php  echo $value['id']; ?>">Sửa</a>
								<span>|</span>
								<a href="<?php echo base_url()?>back_end/group_user/deleteId/<?php  echo $value['id']; ?>">Xóa</a>
							</td>
						</tr>
						<?php }
						 	} else {
						?>
						<tr>
							<td colspan="6"><i style="color: #000;">Không có kết quả nào được tìm thấy</i></td>
						</tr> 
						 <?php
						 	} 
						 ?>
					</table>
				</div>
				
				<div class="content_ct_show_paging">
					<?php echo $this->pagination->create_links(); ?>
				</div>		
				</form>
				
			</div>
			<!-- end content_ct_show -->
		</div>	
